<?php
/* @var $this TableauArchitecteController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
	'Tableau Architectes',
);

$this->menu=array(
	array('label'=>'<span class="icon-plus"></span> Créer un tableau', 'url'=>array('create'), 'visible' => isset(Yii::app()->user->canEdit) && Yii::app()->user->canEdit)
);
?>

<style>

tbody {
	font-size: 12px;
}


</style>

<legend><h3><img src="<?php echo Yii::app()->theme->baseUrl; ?>/images/news_subscribe.png"> Liste des tableaux architectes </h3></legend>

    <?php $this->widget('bootstrap.widgets.TbGridView', array(
	'id'=>'tableau-architecte-grid',
	'dataProvider'=>$model->search(),
        'type'=>'striped',
	'filter'=>$model,
	'columns'=>array(
		'nom',
		'sousTitre',
		'dateCreation',
		array(
			'class'=>'CButtonColumn',
			'template' => '{update}{view}',
			'buttons' => array(
				'update' => array('visible' => 'isset(Yii::app()->user->canEdit) && Yii::app()->user->canEdit')
			)
		),
	),
)); ?>
